<!--
    This Source Code Form is subject to the terms of the Mozilla Public
    License, v. 2.0. If a copy of the MPL was not distributed with this
    file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->

<!--
    Copyright (c) 2014, Joyent, Inc.
-->

<div class="row">
    <div class="col-sm-1">
        <div class="user-icon" style="background-image: url(https://www.gravatar.com/avatar/{{emailhash}}?d=identicon&s=48);"> </div>
    </div>
    <div class="details col-sm-5">
        <a href="/users/{{uuid}}" class="login-link">
            <span class="login">
                {{#if alias}}
                    {{alias}}
                {{else}}
                    {{login}}
                {{/if}}
            </span>
        </a> {{#if account}} <span class="subuser">of: <a class="account account-link">{{account}}</a></span> {{/if}} </a>
        <div class="groups-container"></div>
        <span class="uuid selectable">{{uuid}}</span>
    </div>
    <div class="col-sm-3">
        <div class="name">
            <span class="cn"> {{#if cn}} {{cn}} {{/if}} </span>
            {{#if company}} @ <span class="company">{{company}}</span> {{/if}}
        </div>
        <div class="email"><a href="mailto:{{email}}"><i class="fa fa-envelope-o"></i> {{email}}</a></div>
    </div>

    <div class="col-sm-3">
        <span class="provisioning">
            Provisioning <br/>
            {{#if approved_for_provisioning }}
            <strong class="enabled"><i class="fa fa-check"></i> Enabled</strong>
            {{else}}
            <strong class="disabled"><i class="fa fa-times"></i> Disabled</strong>
            {{/if}}
        </span>
    </div>
</div>
